package day2;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class ARRAY {
    public static void main(String[] args) {
        int ar[] = new int[30];
        double[] d = new double[10];
        String[] sr = new String[20];
        System.out.println(ar);
        System.out.println(d);
        System.out.println(sr);
        ar[0] = 199;
        ar[1] = 299;
        ar[2] = 55;
        ar[3] = 80;
        System.out.println(ar[0]);
        Scanner in = new Scanner(System.in);
        for (int i = 0; i < d.length; i++) {
            System.out.print("请输入数组中的第" + (i + 1) + "值：");
            d[i] = in.nextDouble();
        }
        for (int i = 0; i < d.length; i++) {
            System.out.print(d[i]+" ");
        }
        System.out.println();
//        int i1=190;
//        int i2=150;
//        int i3=166;
    }
}
